package tw.asap.plus.entity.response;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Yax.
 * Date: 15/11/14
 * Time: 上午1:57
 * Description:
 */
public class OrderCreated implements Parcelable {

    /**
     * shopname : 店铺名称
     * pay_amount : 订单金额
     * create_time : 创建时间
     * logo : 订单所在店铺图片
     * order_sn : 订单id
     * order_status : 订单状态
     */

    private String shopname;
    private String pay_amount;
    private String create_time;
    private String logo;
    private String order_sn;
    private String order_status;

    public void setShopname(String shopname) {
        this.shopname = shopname;
    }

    public void setPay_amount(String pay_amount) {
        this.pay_amount = pay_amount;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public void setOrder_sn(String order_sn) {
        this.order_sn = order_sn;
    }

    public void setOrder_status(String order_status) {
        this.order_status = order_status;
    }

    public String getShopname() {
        return shopname;
    }

    public String getPay_amount() {
        return pay_amount;
    }

    public String getCreate_time() {
        return create_time;
    }

    public String getLogo() {
        return logo;
    }

    public String getOrder_sn() {
        return order_sn;
    }

    public String getOrder_status() {
        return order_status;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.shopname);
        dest.writeString(this.pay_amount);
        dest.writeString(this.create_time);
        dest.writeString(this.logo);
        dest.writeString(this.order_sn);
        dest.writeString(this.order_status);
    }

    public OrderCreated() {
    }

    protected OrderCreated(Parcel in) {
        this.shopname = in.readString();
        this.pay_amount = in.readString();
        this.create_time = in.readString();
        this.logo = in.readString();
        this.order_sn = in.readString();
        this.order_status = in.readString();
    }

    public static final Parcelable.Creator<OrderCreated> CREATOR = new Parcelable.Creator<OrderCreated>() {
        public OrderCreated createFromParcel(Parcel source) {
            return new OrderCreated(source);
        }

        public OrderCreated[] newArray(int size) {
            return new OrderCreated[size];
        }
    };
}
